package com.gonsin.gview.example.groovy.services;

import com.gonsin.base.GPageRequest;
import com.gonsin.base.GPageResult;
import com.gonsin.gview.annotations.data.GDataSource;
import com.gonsin.gview.annotations.data.GParam;
import com.gonsin.gview.example.groovy.bean.UserBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
@Slf4j
public class UserServiceImpl {


    /**
     * 用户数据源
     */
    @GDataSource
    public GPageResult<UserBean> searchUser(GPageRequest request, @GParam("startTime") Long startTime, @GParam("startDate") Long startDate, @GParam("startDateTime") Long startDateTime){
        log.info("查询用户表");
        return GPageResult.result(new ArrayList<>(), 0, request);
    }

}
